
// 访问后端地址

// const loginUrl = `https://vservice.mindray.com`;

const loginUrl = `https://mindray.zealcomm.cn`;


// 默认语言  'zh' | 'zh-TW' | 'en-US'
const DEFAULT_LANGUAGE = 'zh';


// 邀请访客链接地址
const customerUrl = `https://vservice.mindray.com/customer/#/start?inviteCode=`;
// 表单服务地址
const formUrl = `https://vservice.mindray.com`;
// 文件上传
const uploadFileUrl = `${loginUrl}/ivcs/api/v1/upload`;


logLevel = 1;

defaultMediaOptions = {
	cameraStreamAudioConstraints: { deviceId: void 0, source: 'mic' },
	cameraStreamVideoConstraints: { deviceId: void 0, frameRate: 15, resolution: { width: 320, height: 240 }, source: 'camera' },
	cameraPublishOptions: {
		audio: [{ codec: { name: 'opus' } }],
		video: [
			{ codec: { name: 'h264' }, maxBitrate: 1024 },
			{ codec: { name: 'vp8' }, maxBitrate: 1024 },

		]
	},
	screenStreamAudioConstraints: { source: 'screen-cast' },
	screenStreamVideoConstraints: { frameRate: 15, resolution: { width: 1280, height: 720 }, source: 'screen-cast' },
	screenPublishOptions: {
		audio: [{ codec: { name: 'opus' }, maxBitrate: 64 }],
		video: [
			{ codec: { name: 'h264' }, maxBitrate: 1024 },
			{ codec: { name: 'vp8' }, maxBitrate: 1024 },

		]
	}
};

//上传文件最大大小
maxUploadFileSize = 1024000 * 50;

// 虚拟背景设置
const backgroundImageList = [
	{
		id: 1,
		api: '',
		apiClear: '',
		fileName: 'nope.png', // 文件名
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/65f68a8abf1cebf54ea1b2993422646c.png', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/9b0a85e6103af3fa187fdf95dcc0a0fe.png', // 预览图片地址
		type: 'no', // 不开启虚拟背景
		isDefault: true
	},
	{
		id: 2,
		api: '',
		apiClear: '',
		fileName: 'blur.png',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/1e75806d9476f1c4dd1a051b26d721ca.png', // 应用图片地址
		abbreviatedUrl: 'http://zco-fileupload.oss-cn-shanghai.aliyuncs.com/7c76be0bd2ee1bda0be75a126c4d2966.png', // 预览图片地址
		type: 'fuzzy', // 模糊
		blurRadius: 12, // 模糊值
		isDefault: true
	},
	{
		id: 3,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_sandbeach.jpg',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/6b76182a4d4d47f6b22f0f9ea4d13c95.jpg', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/e755d7ce9d588c7f1f5f09aef2733c0f.jpg', // 预览图片地址
		type: 'normal', // 默认
		isDefault: true
	},
	{
		id: 4,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_west_lake.png',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/b31079056bd3919e67ae3290346222ec.png', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/9085761213f502e7c0e1c34c43dfac24.png', // 预览图片地址
		type: 'normal',
		isDefault: true
	},
	{
		id: 5,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_sanctum.png',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/4d6d6c3b2d4585303308482b65815309.png', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/f5b855df94d024695409a9a57dfe298a.png', // 预览图片地址
		type: 'normal',
		isDefault: true
	},
	{
		id: 6,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_office_sofa.jpg',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/3e3fd93366f6b9dcf91aa238f6c77b7d.jpg', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/15a3d035f0ff34846e20e33a20e427cc.jpg', // 预览图片地址
		type: 'normal',
		isDefault: true
	},
	{
		id: 7,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_office.png',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/bc5588ae8f225357d1f356e28741cf3e.png', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/a3170d6aee22c4c9207c7686d3957272.png', // 预览图片地址
		type: 'normal',
		isDefault: false
	},
	{
		id: 8,
		api: 'BackgroundTexture.set',
		apiClear: 'BackgroundTexture.clear',
		fileName: 'bg_sofa.png',
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/bd62067d51e07de455bb0b29087ee6a1.png', // 应用图片地址
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/05992be751dc87d9031596ecc22c2058.png', // 预览图片地址
		type: 'normal',
		isDefault: true
	}
];

// 水印配置
const watermarkImageList = [
	{
		id: 1,
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/fa8910198a2cc0684ca0c4aba5d85c80.png',
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/fa8910198a2cc0684ca0c4aba5d85c80.png', // 预览图片地址
		position: 1,
		fileName: 'nope.png',
		type: 'no',
		isDefault: true
	},
	{
		id: 2,
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/04fe08e842230ea504accb0334f27710.png',
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/dc9be3a92d0e16f129ba78c3d5b7e4a7.png', // 预览图片地址
		position: 1,
		fileName: 'water6401.png',
		type: 'normal',
		isDefault: true
	},
	{
		id: 3,
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/631acec28d827e337ac249bc9cf14e91.png',
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/115b6603ffe8c5e00229a8a49460bc77.png', // 预览图片地址
		position: 1,
		fileName: 'water6402.png',
		type: 'normal',
		isDefault: true
	},
	{
		id: 4,
		url: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/9fbc13ac1fb739ae85633e446ff1c9f7.png',
		abbreviatedUrl: 'https://zco-fileupload.oss-cn-shanghai.aliyuncs.com/cb37e87c4965b9b03020ca675c7de6a0.png', // 预览图片地址
		position: 1,
		fileName: 'water6403.png',
		type: 'normal',
		isDefault: true
	}
];

